package com.deep.ware.feign;

import com.deep.common.utils.R;
import com.deep.ware.model.vo.OrderVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 订单服务远程调用
 */
@FeignClient("mall-order")
public interface OrderFeignService {
    /**
     * 获取订单状态
     *
     * @param orderSn 订单号
     */
    @GetMapping("/order/order/status/{orderSn}")
    OrderVO getOrderStatus(@PathVariable("orderSn") String orderSn);
}
